package org.study.mongoplus.boot.domain;

import com.anwen.mongo.annotation.ID;
import com.anwen.mongo.annotation.collection.CollectionName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 类的描述
 *
 * @author doveylovey
 * @version v1.0.0
 * @email 1135782208@qq.com
 * @date 2024年03月22日
 */
@Data
@CollectionName("col_employee")
public class Employee implements Serializable {
    private static final long serialVersionUID = 4112855196065463736L;

    /**
     * 使用ID注解，标注此字段为MongoDB的_id，或者继承BaseModelID类
     */
    @ID
    private String id;
    private String name;
    private Integer level;
    private BigDecimal salary;
    private LocalDate birthday;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
